import request from '../../../public/utils/request';

export default {
    /**
     * 查询对象注册列表
     * @param {Object} data
     * @returns {Promise}
     */
    getObjectRegisterList(data) {
        return request('/nccloud/erm/ersetting/ObjectRegisterQueryAction.do', { data });
    },
    /**
     * 获取对象注册左侧树
     * @param {Object} data
     * @returns {Promise}
     */
    getObjectRegisterTree(data) {
        return request('/nccloud/erm/ersetting/AccountTableTypeAction.do', { data });
    },
    /**
     * 保存对象注册
     * @param {Object} data
     * @returns {Promise}
     */
    saveObjectRegister(data) {
        return request('/nccloud/erm/ersetting/ObjectRegisterEditAction.do', { data });
    },
    /**
     * 删除对象注册
     * @param {Object} data
     * @returns {Promise}
     */
    deleteObjectRegister(data) {
        return request('/nccloud/erm/ersetting/ObjectRegisterDeleteAction.do', { data });
    }
};
